package com.example.wangyuyuan.androidframe.mvp.ui;

import android.content.Context;
import android.os.Handler;
import android.view.View;
import android.view.WindowManager;

import com.example.wangyuyuan.androidframe.MainActivity;
import com.example.wangyuyuan.androidframe.R;
import com.example.wangyuyuan.androidframe.mvp.base.BaseActivity;
import com.jaeger.library.StatusBarUtil;

/**
 * Created by wangyuyuan on 2017/5/16.
 */

public class WelcomeActivity extends BaseActivity {


    @Override
    protected void processLogic() {
        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                jumpToActivityAndClearTask(LoginAndRegisterActivity.class);
            }
        }, 2000);

    }

    @Override
    protected void setListener() {

    }

    @Override
    protected void findViewById() {

    }

    @Override
    protected void loadViewLayout() {
        setContentView(R.layout.welcome_ac_layout);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
        StatusBarUtil.setColor(this, getResources().getColor(R.color.colorAccent), 10);
    }

    @Override
    protected Context getActivityContext() {
        return this;
    }

    @Override
    public void onClick(View v) {

    }

    /**
     * 不相应返回键
     */
    @Override
    public void onBackPressed() {
//        super.onBackPressed();
        return;
    }
}
